#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""HiAgent Chat SDK

一个用于与HiAgent v2.1.0智能体接口进行交互的Python客户端库。

特性:
- 完整的会话管理功能
- 支持同步和流式聊天
- 文件上传和多媒体支持
- 工作流执行
- 长期记忆管理
- 用户变量管理
- 完善的错误处理

使用示例:
    from hiagent_chat import HiAgentClient, HiAgentConfig
    
    # 配置客户端
    config = HiAgentConfig(
        app_key="your_app_key",
        base_url="https://api.hiagent.com"
    )
    client = HiAgentClient(config)
    
    # 创建会话
    conversation = client.create_conversation(
        user_id="user123",
        title="我的会话"
    )
    
    # 发送消息
    response = client.chat(
        conversation_id=conversation.id,
        user_id="user123",
        query="你好"
    )
    print(response.content)
"""

__version__ = "1.0.0"
__author__ = "HiAgent Team"
__email__ = "support@hiagent.com"

# 导入主要类和函数
from client import HiAgentClient
from config import HiAgentConfig, ConfigManager, load_config, get_config
from exceptions import (
    HiAgentException,
    APIException,
    AuthenticationException,
    ValidationException,
    NetworkException,
    ConversationNotFoundException,
    MessageNotFoundException,
    WorkflowException,
    RateLimitException
)
from models import (
    Conversation,
    Message,
    ChatResponse,
    WorkflowResult,
    LongMemory,
    UserVariable,
    FileInfo,
    QueryExtends
)

__all__ = [
    # 核心类
    "HiAgentClient",
    "HiAgentConfig",
    "ConfigManager",
    "load_config",
    "get_config",
    
    # 异常类
    "HiAgentException",
    "APIException", 
    "AuthenticationException",
    "ValidationException",
    "NetworkException",
    "ConversationNotFoundException",
    "MessageNotFoundException",
    "WorkflowException",
    "RateLimitException",
    
    # 数据模型
    "Conversation",
    "Message", 
    "ChatResponse",
    "FileInfo",
    "QueryExtends",
    "WorkflowResult",
    "LongMemory",
    "UserVariable"
]